package com.stock.stockprediction.mapper;

import com.stock.stockprediction.entity.Stock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stock.stockprediction.entity.vo.StockMonthVo;
import com.stock.stockprediction.entity.vo.StockVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xtt
 * @since 2022-06-03
 */
public interface StockMapper extends BaseMapper<Stock> {

    //查询所有月数据
    List<StockMonthVo> getStockListByMonth(@Param("stockVo") StockVo stockVo);

    //查询所有月数据(带分页)
    List<StockMonthVo> getAllMonthData(@Param("firstLimitParam") Long firstLimitParam, @Param("limit") Long limit);

    //查询月数据总记录数
    Integer countAllMonthData();
}
